package cn.com.scau.tstjxt.action;

import cn.com.scau.tstjxt.dao.TuserLog;

public class Newlog {
	public void new_operatelog(String id,String bookid,String keyword,String operatetype,java.util.Date starttime){
		   TuserLog tuserLog = new TuserLog();
	       tuserLog.setUserid(id);
	       tuserLog.setBookid(bookid);
	       tuserLog.setContent(keyword);
	       tuserLog.setOperatetime(starttime);
	       tuserLog.setOperatetype(operatetype);
	       TuserLogAction tuserLogAction = TuserLogAction.getInstance();
	       tuserLogAction.saveTuserLog(tuserLog);
	}
	public void new_operatelog_2(String id,String bookid,String keyword,String operatetype,java.util.Date starttime,java.util.Date endtime){
		   TuserLog tuserLog = new TuserLog();
	       tuserLog.setUserid(id);
	       tuserLog.setBookid(bookid);
	       tuserLog.setContent(keyword);
	       tuserLog.setOperatetime(starttime);
	       tuserLog.setReservation11(endtime);
	       tuserLog.setOperatetype(operatetype);
	       TuserLogAction tuserLogAction = TuserLogAction.getInstance();
	       tuserLogAction.saveTuserLog(tuserLog);
	}
	

}
